#include "sdkGlobal.h"
#include "platform_global.h"

typedef struct {
    SettleFunc mSettleFunc;
    LogOutFunc mLogOutFunc;
    TmsDownloadFunc mTmsDownloadFunc;
}platform_settle_entity;

static platform_settle_entity g_platform_settle_entity;

void platform_settle_init(void)
{
    memset(&g_platform_settle_entity, 0, sizeof(g_platform_settle_entity));
}

void platform_settle_set_settle_func(SettleFunc func)
{
    g_platform_settle_entity.mSettleFunc = func;
}

SettleFunc platform_settle_get_settle_func(void)
{
    return g_platform_settle_entity.mSettleFunc;
}

void platform_settle_set_logout_func(LogOutFunc func)
{
    g_platform_settle_entity.mLogOutFunc = func;
}

LogOutFunc platform_settle_get_logout_func(void)
{
    return g_platform_settle_entity.mLogOutFunc;
}

void platform_settle_set_tms_download_func(TmsDownloadFunc func)
{
    g_platform_settle_entity.mTmsDownloadFunc = func;
}

TmsDownloadFunc platform_settle_get_tms_download_func(void)
{
    return g_platform_settle_entity.mTmsDownloadFunc;
}